// JavaScript Document

/*酒店详情焦点图*/
jQuery("#focusLitPic li").mouseover(function(){
	test(jQuery("#focusLitPic li").index(this));
})
var mindex=0;
function test(newindex){
	var lis=jQuery("#focusLitPic li");
	var bigimg=jQuery("#focusBigPic img")[0];
	jQuery(lis[newindex]).addClass("current");
	jQuery(lis[mindex]).removeClass("current");
	bigimg.src=jQuery(lis[newindex]).attr("bigImgSrc");
	mindex=newindex;
}
function timeoutfun(){
	if(mindex>=(jQuery("#focusLitPic li").length-1)){
		test(0);
	}else{
		test(mindex+1);
	}
	setTimeout("timeoutfun()",3000);
}
setTimeout("timeoutfun()",3000);
